// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 引入reset.css 重置浏览器标签的样式表
import 'styles/reset.css'
// 解决移动端1像素问题
import 'styles/border.css'
// 解决移动端点击延迟300毫秒的问题
import fastClick from 'fastclick'
// 导入字体图标
import 'styles/iconfont/iconfont.css'
// 导入mint-ui
import MintUi from 'mint-ui'
import 'mint-ui/lib/style.css'

// 导入轮播图插件
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
// 导入 Axios
import Axios from 'axios'
import VueResource from 'vue-resource'
// 导入 vuex(全局状态管理器) store
import store from './store'

Vue.use(VueAwesomeSwiper)
Vue.use(MintUi)
// 原型模式安装 axios 否则会有报错警告(不推荐原型模式安装)
Vue.prototype.$ajax = Axios
Vue.use(VueResource)

// 阻止启动生产消息
Vue.config.productionTip = false
fastClick.attach(document.body)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>',
  store: store
})
